package edu.hawaii.duedates.library;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;

/**
 * Test case for LibraryOption class.
 * @author Creighton Okada
 */
public class TestLibraryOption {
  /**
   * Test LibraryOption functionality.
   */
  @Test
  public void testLibraryOption() {
    LibraryOption opt = new LibraryOption();
    ILibrary lib = new Library();
    List<ILibrary> libraries = new ArrayList<ILibrary>();
    
    opt.setLibrary(lib);
    opt.setEmailStatus(true);
    LibraryOption.getOptions(libraries);
    
    assertTrue("Should return true.", opt.getEmailStatus());
    assertEquals("lib was set.", lib, opt.getLibrary());
  }
}
